home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / tests / fpunit / test.s < prev   
Encoding:
Text File  |  1989-05-21  |  1.2 KB  |  44 lines

  1. /*
  2.  * test.s --
  3.  *
  4.  *    Program for testing floating point instruction problems from user mode.
  5.  *
  6.  * Copyright 1989 Regents of the University of California
  7.  * Permission to use, copy, modify, and distribute this
  8.  * software and its documentation for any purpose and without
  9.  * fee is hereby granted, provided that the above copyright
  10.  * notice appear in all copies.  The University of California
  11.  * makes no representations about the suitability of this
  12.  * software for any purpose.  It is provided "as is" without
  13.  * express or implied warranty.
  14.  */
  15.  
  16. .seg    "data"
  17. .asciz    "$Header: /sprite/lib/forms/sun4.md/RCS/proto.s,v 1.1 89/01/16 20:38:17 mgbaker Exp Locker: mgbaker $ SPRITE (Berkeley)"
  18. .align    8
  19. .seg    "text"
  20.  
  21. /*
  22.  * ----------------------------------------------------------------------
  23.  *
  24.  * TestFp --
  25.  *
  26.  *    Test whatever floating point instructions from user mode.  The
  27.  *    contents of this routine depend upon whatever I'm testing at the
  28.  *    moment.  This is a temporary tester for the sun4 port.
  29.  *
  30.  * Results:
  31.  *    None.
  32.  *
  33.  * Side effects:
  34.  *    None.
  35.  *
  36.  * ----------------------------------------------------------------------
  37.  */
  38. .globl    _TestFp
  39. _TestFp:
  40.     set    _testValue, %o0
  41.     ld    [%o0], %f0
  42.     retl
  43.     nop
  44.